package service.imp;

import dao.UserDao;
import entity.User;
import service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    UserDao userDao = new UserDao();
    @Override
    public User login(String username, String password) {
        //  完成业务逻辑  调dao
        return userDao.login(username,password);
    }

    @Override
    public List<User> listUsers() {
        // 调dao 查询用户
        return userDao.listUsers();
    }
}
